Optimal. Leaf size=83 \[ \frac{\sqrt{b x+c x^2} (2 A c+b B)}{b}+\frac{(2 A c+b B) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{\sqrt{c}}-\frac{2 A \left (b x+c x^2\right )^{3/2}}{b x^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.205286, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182 \[ \frac{\sqrt{b x+c x^2} (2 A c+b B)}{b}+\frac{(2 A c+b B) \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{\sqrt{c}}-\frac{2 A \left (b x+c x^2\right )^{3/2}}{b x^2} \]
Antiderivative was successfully verified.
[In] Int[((A + B*x)*Sqrt[b*x + c*x^2])/x^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 11.543, size = 78, normalized size = 0.94 \[ - \frac{2 A \left (b x + c x^{2}\right )^{\frac{3}{2}}}{b x^{2}} + \frac{2 \left (A c + \frac{B b}{2}\right ) \operatorname{atanh}{\left (\frac{\sqrt{c} x}{\sqrt{b x + c x^{2}}} \right )}}{\sqrt{c}} + \frac{2 \left (A c + \frac{B b}{2}\right ) \sqrt{b x + c x^{2}}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*(c*x**2+b*x)**(1/2)/x**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.111101, size = 74, normalized size = 0.89 \[ \frac{\sqrt{x (b+c x)} \left (\frac{\sqrt{x} (2 A c+b B) \log \left (\sqrt{c} \sqrt{b+c x}+c \sqrt{x}\right )}{\sqrt{c} \sqrt{b+c x}}-2 A+B x\right )}{x} \]
Antiderivative was successfully verified.
[In] Integrate[((A + B*x)*Sqrt[b*x + c*x^2])/x^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.013, size = 113, normalized size = 1.4 \[ -2\,{\frac{A \left ( c{x}^{2}+bx \right ) ^{3/2}}{b{x}^{2}}}+2\,{\frac{Ac\sqrt{c{x}^{2}+bx}}{b}}+A\sqrt{c}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ) +B\sqrt{c{x}^{2}+bx}+{\frac{Bb}{2}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){\frac{1}{\sqrt{c}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*(c*x^2+b*x)^(1/2)/x^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x)*(B*x + A)/x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.289545, size = 1, normalized size = 0.01 \[ \left [\frac{{\left (B b + 2 \, A c\right )} x \log \left ({\left (2 \, c x + b\right )} \sqrt{c} + 2 \, \sqrt{c x^{2} + b x} c\right ) + 2 \, \sqrt{c x^{2} + b x}{\left (B x - 2 \, A\right )} \sqrt{c}}{2 \, \sqrt{c} x}, \frac{{\left (B b + 2 \, A c\right )} x \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right ) + \sqrt{c x^{2} + b x}{\left (B x - 2 \, A\right )} \sqrt{-c}}{\sqrt{-c} x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x)*(B*x + A)/x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{x \left (b + c x\right )} \left (A + B x\right )}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*(c*x**2+b*x)**(1/2)/x**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.282924, size = 111, normalized size = 1.34 \[ \sqrt{c x^{2} + b x} B - \frac{{\left (B b + 2 \, A c\right )}{\rm ln}\left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x}\right )} \sqrt{c} - b \right |}\right )}{2 \, \sqrt{c}} + \frac{2 \, A b}{\sqrt{c} x - \sqrt{c x^{2} + b x}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x)*(B*x + A)/x^2,x, algorithm="giac")
[Out]